package com.ylproject.basemodel.base

import android.content.Context
import androidx.multidex.MultiDex
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger
import com.yl.androidutilscenter.base.BaseApplication


/**
 * @author YL
 * @description:
 * @date : 2024/8/19
 * @version 1.0.0
 */
class MultiDexBaseApplication : BaseApplication() {

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        MultiDex.install(base)
    }
    override fun init() {
        Logger.addLogAdapter(object : AndroidLogAdapter() {
            override fun isLoggable(priority: Int, tag: String?): Boolean {
                return super.isLoggable(priority, tag)
//                return BuildConfig.DEBUG
            }
        })
    }

    override fun initLogTagName(): String {
        return super.initLogTagName()
    }

}